package org.halk.service.impl;

import org.halk.entity.StudentTest;
import org.halk.repository.StudentTestRepository;
import org.halk.service.StudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StudentServiceImpl implements StudentService {

    @Resource
    private StudentTestRepository studentTestRepository;


    @Override
    public StudentTest queryById(int i) {
        return studentTestRepository.findById(i).get();
    }
}
